﻿#region Copyright

//  ======================================================
//      Copyright (c) 2011 Toulr All rights reserved.
//     
//      The use and distribution terms for this software are contained in the file
//      named license.txt, which can be found in the root of this distribution.
//      By using this software in any fashion, you are agreeing to be bound by the
//      terms of this license.
//     
//     You must not remove this notice, or any other, from this software.
//  ======================================================

#endregion

#region Using Namespaces

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

#endregion

namespace Toulr.Domains.Account
{
    public class RolePermissions
    {
        #region Property
        [Key]
        public int Id { get; set; }
        
        /// <summary>
        /// 角色ID 
        /// </summary>
        public int RoleId { get; set; }
        /// <summary>
        /// 权限ID
        /// </summary>
        public int PermissionsId { get; set; }

        #endregion

        #region Association Objects

        [NotMapped]
        public UserRole Role
        {
            get { throw new NotImplementedException(); }
        }

        [NotMapped]
        public ICollection<Permission> Permissions
        {
            get { throw new NotImplementedException(); }
        }

        #endregion


        
    }
}